<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><notempty name="ur_here">{$ur_here}</notempty></title>
        <meta name="robots" content="noindex, nofollow">
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <css href="../Public/styles/general.css"/>
            <css href="../Public/styles/main.css"/>
    </head>
    <body>

        <div class="list-div">
            <div style="background:#FFF; padding: 20px 50px; margin: 2px;">
                <table align="center" width="400">
                    <tr>
                        <td width="50" valign="top">
                            <switch name="msg_type" >
                                <case value="0">
                                    <img src="../Public/images/information.gif" width="32" height="32" border="0" alt="information" />
                                </case>
                                <case value="1">
                                    <img src="images/warning.gif" width="32" height="32" border="0" alt="warning" />
                                </case>                
                                <default />
                                <img src="images/confirm.gif" width="32" height="32" border="0" alt="confirm" />
                            </switch>
                        </td>
                        <td style="font-size: 14px; font-weight: bold">{$msg_detail}</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td id="redirectionMsg">
                            <notempty name="auto_redirect">如果您不做出选择，将在 <span id="spanSeconds">3</span> 秒后跳转到第一个链接地址。</notempty>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <ul style="margin:0; padding:0 10px" class="msg-link">
                                <volist name="links" id="link">
                                    <li><a href="{$link.href}" <notempty name="link['target']">target="{$link.target}"</notempty>>{$link.text}</a></li>
                                </volist>
                            </ul>

                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <notempty name="auto_redirect">
        <script language="JavaScript">
            <!--
            var seconds = 3;
            var defaultUrl = "{$default_url}";

            <literal>
            onload = function()
            {
                if (defaultUrl == 'javascript:history.go(-1)' && window.history.length == 0)
                {
                    document.getElementById('redirectionMsg').innerHTML = '';
                    return;
                }

                window.setInterval(redirection, 1000);
            }
            function redirection()
            {
                if (seconds <= 0)
                {
                    window.clearInterval();
                    return;
                }

                seconds --;
                document.getElementById('spanSeconds').innerHTML = seconds;

                if (seconds == 0)
                {
                    window.clearInterval();
                    location.href = defaultUrl;
                }
            }
            //-->
        </script>
        </literal>
        </notempty>
    </body>
</html>